//-----------------------------------------------------------------------
//<copyright file="IChiTietPhieuNhapDAO.cs
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using PMS.Entity;

namespace PMS.DAL
{
	public interface IChiTietPhieuNhapDAO
	{
			ChiTietPhieuNhap CreateChiTietPhieuNhap(ChiTietPhieuNhap chitietphieunhap);
			void UpdateChiTietPhieuNhap(ChiTietPhieuNhap chitietphieunhap);
			void DeleteChiTietPhieuNhap(ChiTietPhieuNhap chitietphieunhap);
			ChiTietPhieuNhaps GetAllChiTietPhieuNhap();
			ChiTietPhieuNhap GetChiTietPhieuNhapByID(string maCTPN);
            void DeleteChiTietPhieuNhapBySoPN(string SoPN);
            ChiTietPhieuNhaps GetAllChiTietPhieuNhapBySoPN(string SoPN);
            ChiTietPhieuNhaps GetAllChiTietPhieuNhapByMaThuoc(string mathuoc,string makho, int? lonhon);
            ChiTietPhieuNhap GetChiTietPhieuNhapByMaThuocAndSoLo(string mathuoc, string solo);
            void UpdateChiTietPhieuNhapTonkho(string maCTN, int Qty);
            ChiTietPhieuNhaps GetAllChiTietPhieuNhapByNgayNhapAndSoPNAndMaThuoc(string SoPN, DateTime? tungay, DateTime? dengnay, string mathuoc);
            ChiTietPhieuNhaps GetAllThuocHetHangTrongThoiGian(int SoNGay);
	}
}//End Class
